package com.kehutong.charge.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.kehutong.charge.util.enums.ChargeBillStatusEnum;
import com.kehutong.common.entity.DataEntity;
import com.kehutong.common.util.BigDecimalUtils;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @program: kht
 * @description: 临时账单管理表导出
 * @author: jian Ye
 * @create: 2021/8/9
 **/
public class ChargeBillInterimExcelVO {


    @ExcelProperty(value="账单编号")
    private String interimBillNo;
    @ExcelProperty(value="收费类型")
    private String feeTypeName;
    @ExcelProperty(value="账单地址")
    private String billAddress;
    @ExcelProperty(value="缴费人")
    private String chargeName;
    @ExcelProperty(value="账单金额")
    private String billAmount;
    @ExcelProperty(value="备注")
    private String remark;
    @ExcelIgnore
    private ChargeBillStatusEnum billStatus;
    @ExcelProperty(value="缴费状态")
    private String billState;
    @ExcelProperty(value="创建时间")
    private Timestamp createTime;


    public String getBillAmount() {
        return billAmount;
    }

    /**特殊处理*/
    public void setBillAmount(String billAmount) {
        this.billAmount = BigDecimalUtils.parse(billAmount);
    }

    public String getInterimBillNo() {
        return interimBillNo;
    }

    public void setInterimBillNo(String interimBillNo) {
        this.interimBillNo = interimBillNo;
    }

    public String getFeeTypeName() {
        return feeTypeName;
    }

    public void setFeeTypeName(String feeTypeName) {
        this.feeTypeName = feeTypeName;
    }

    public String getBillAddress() {
        return billAddress;
    }

    public void setBillAddress(String billAddress) {
        this.billAddress = billAddress;
    }

    public String getChargeName() {
        return chargeName;
    }

    public void setChargeName(String chargeName) {
        this.chargeName = chargeName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public ChargeBillStatusEnum getBillStatus() {
        return billStatus;
    }

    public void setBillStatus(ChargeBillStatusEnum billStatus) {
        this.billStatus = billStatus;
    }

    public String getBillState() {
        return billStatus.getDesc();
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
